//
//  TMText.swift
//  TimMusic
//
//  Created by nkl on 2024/10/23.
//

import Foundation
import SwiftUI

struct TMText: View {
    var title: String
    var font: CGFloat = 14
    var isBold: Bool = false
    var color: Color = .black
    var align: TextAlignment = .leading
    var numberOflines: Int = 0

    var body: some View {
        Text(title)
            .multilineTextAlignment(align)
            .font(isBold ? .system(size: font) : .system(size: font).bold())
            .foregroundColor(color)
            .lineLimit(numberOflines)
    }
}
